package com.example.xd.model_video.clipvideo;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.example.xd.model_video.R;

/**
 * @auther XuDan on 2019/7/17.
 */
public class ClipView extends FrameLayout {

    private RecyclerView mRecycle;
    private ImageView mPositionIcon;
    private LinearLayout mLl_seekBar;

    public ClipView(Context context) {
        this(context, null);
    }

    public ClipView(Context context, AttributeSet attrs) {
        this(context, attrs, -1);
    }

    public ClipView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView(context, attrs);
    }

    private void initView(Context context, AttributeSet attrs) {
        LayoutInflater.from(context).inflate(R.layout.clip_view_layout, this, true);
        mRecycle = findViewById(R.id.clip_view_recycle);
        mPositionIcon = findViewById(R.id.clip_view_positionIcon);
        mLl_seekBar = findViewById(R.id.clip_view_seekBarLayout);
    }

    public RecyclerView getRecycle() {
        return mRecycle;
    }

    public ImageView getPositionIcon() {
        return mPositionIcon;
    }

    public LinearLayout getLl_seekBar() {
        return mLl_seekBar;
    }
}
